package com.authine.cloudpivot.ext.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TpiOrderModel {
    private String erpPo;
    private String id;
    private String name;
    private String brand;
    private String model;
    private String memberName;//下单人
    private String customerOrderId;
    private String num;
    private String price;
    private String amount;
    private String delivery; // 货期
    private String deliveryTime; // 承诺到货时间
    private String actualDeliverTime;//实际到货时间
    private String bolRufund;//是否退货
    private String refundReason;//退货原因
    private String time;//下单时间
    private String vendorName; //中标供应商
    private String bolInvite;//是否邀请
    private String bolOntime;//是否准时交付
    private String bolLowest;//是否最低价定标
    private String priceDiff;
    private String amountDiff;
    private String inquryDelivery;//询价货期

    private String inquiryGoodsIds;//询价商品ids

    public TpiOrderModel(Object erpPo, Object id, Object name, Object brand, Object model, Object memberName, Object customerOrderId, Object num, Object price, Object amount, Object delivery, Object deliveryTime, Object actualDeliverTime, Object bolRufund, Object refundReason, Object time, Object vendorName, Object bolInvite, Object bolOntime, Object bolLowest, Object priceDiff, Object amountDiff, Object inquryDelivery) {
        this.erpPo = String.valueOf(erpPo);
        this.id = String.valueOf(id);
        this.name = String.valueOf(name);
        this.brand = String.valueOf(brand);
        this.model = String.valueOf(model);
        this.bolLowest = String.valueOf(bolLowest);
        this.memberName = String.valueOf(memberName);
        this.customerOrderId = String.valueOf(customerOrderId);
        this.num = String.valueOf(num);
        this.price = String.valueOf(price);
        this.amount = String.valueOf(amount);
        this.priceDiff = String.valueOf(priceDiff);
        this.amountDiff = String.valueOf(amountDiff);
        this.delivery = String.valueOf(delivery);
        this.deliveryTime = String.valueOf(deliveryTime);
        this.actualDeliverTime = String.valueOf(null == actualDeliverTime ? "未送" : actualDeliverTime);
        this.bolRufund = String.valueOf(bolRufund);
        this.refundReason = String.valueOf(null == refundReason ? "" : refundReason);
        this.time = String.valueOf(time);
        this.vendorName = String.valueOf(vendorName);
        this.bolInvite = String.valueOf(bolInvite);
        this.bolOntime = String.valueOf(bolOntime);
        this.inquryDelivery = String.valueOf(inquryDelivery);
        this.inquryDelivery = String.valueOf(null == inquryDelivery ? "" : inquryDelivery);
    }
}
